#!/usr/bin/python
# *-* coding: utf-8 *-*

import time
import busio
import board
import adafruit_amg88xx

i2c_bus = busio.I2C(board.SCL, board.SDA)
amg = adafruit_amg88xx.AMG88XX(i2c_bus, addr=0x69)
time.sleep(0.1)

while True:
    for row in amg.pixels:
        print(["{0:.2f}".format(temp) for temp in row])
        print("")
    print("\n")
    time.sleep(1)
